from src.game.entity.entity import Entity
from src.game.entity.item import EntityItem

class PowerUp(EntityItem):
    
    name = "powerup"
    
    def __init__(self):
        EntityItem.__init__(self)
        self.active = True
        
    def onCollision(self, entity):
        Entity.onCollision(self, entity)
        self.addEffect(entity)
        
    def addEffect(self, entity):
        pass
    
    def update(self):
        EntityItem.update(self)
        if self.active is False:
            self.world.despawnEntity(self)